package org.zju.demo;

import java.math.BigInteger;

/**
 * Created by ZJDX on 2015/9/17.
 */
public class Factor {

    public BigInteger getFactor(int n) {
        if (n == 1)
            return BigInteger.ONE;
        return BigInteger.valueOf(n).multiply(getFactor(n-1));
    }

    public static void main(String[] args) {
       Factor a = new Factor();
        System.out.println(a.getFactor(100));
    }
}
